import { Component } from '@angular/core';

@Component({
  selector: 'app-demo3',
  templateUrl: './demo3.component.html',
  styles: [``]
})
export class Demo3Component {
  selectedValue;

  beforeValueChange = (e) => {
    if (e === 'aaa') {
      return false;
    } else {
      return true;
    }
  }

  modelChange(e) {
    console.log(e);
  }
}
